<template>
  <div class="page_content daraBoardLint_content">
    <div class="header_title flex flex-ac pl-10">
      <div class="icon">
        <img :src="iconPng" class="img" />
      </div>
      <div class="title ml-10">站点类型统计</div>
    </div>
    <div class="main_box p-10 grid">
      <div v-for="item in boxBodyList" :key="item.id" class="main_item mt-10 flex flex-ac flex-c">
        <div class="txt">{{ item.name }}</div>
        <div class="val  mt-5" :class="item.val == 0 ? 'hui' : ''">
          {{ item.val }}
        </div>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import {
  ref,
  computed,
  watch,
  onMounted,
  onBeforeUnmount,
  reactive,
  shallowRef,
} from "vue";
import { useStore } from "vuex";
import * as echarts from "echarts";
const store = useStore();

const props = defineProps<{}>();
const iconPng = new URL("@/assets/img/index/pf.png", import.meta.url).href;
let boxBodyList = ref([
  {
    name: "其他垃圾站",
    val: 5,
    id: 1,
  },
  {
    name: "混合站",
    val: 0,
    id: 2,
  },
  {
    name: "厨余垃圾站",
    val: 5,
    id: 3,
  },
]);
onMounted(() => { });

onBeforeUnmount(() => { });
</script>

<style lang="scss" scoped>
.daraBoardLint_content {
  height: 100%;

  .header_title {
    height: 40px;
    background: linear-gradient(to right, rgb(216, 242, 252), #ffffff);

    .icon {
      width: 26px;
      height: 26px;

      .img {
        width: 100%;
        height: 100%;
      }
    }

    .title {
      font-size: 16px;
      font-weight: 550;
      color: #333333;
    }
  }

  .main_box {
    height: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-content: center;

    .main_item {}

    .txt {
      color: #5f5f5f;
    }

    .val {
      color: #1890ff;
      font-size: 18px;
    }

    .hui {
      color: #5f5f5f;
    }
  }
}
</style>